//
//  HouseCosignResultViewController.m
//  Finder
//
//  Created by cdm on 11-4-18.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "HouseCosignResultViewController.h"


@implementation HouseCosignResultViewController

@synthesize houseMoneyAmountLabel;
@synthesize cosignAmountLabel;
@synthesize repaymentAmountLabel;
@synthesize accrualLabel;
@synthesize firstMoneyLabel;
@synthesize loanMonthLabel;
@synthesize repaymentPreMonthTextView;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)dealloc
{
    [self.houseMoneyAmountLabel release];
    [self.cosignAmountLabel release];
    [self.repaymentAmountLabel release];
    [self.accrualLabel release];
    [self.firstMoneyLabel release];
    [self.loanMonthLabel release];
    [self.repaymentPreMonthTextView release];
    
    [super dealloc];
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.houseMoneyAmountLabel = nil;
    self.cosignAmountLabel = nil;
    self.repaymentAmountLabel = nil;
    self.accrualLabel = nil;
    self.firstMoneyLabel = nil;
    self.loanMonthLabel = nil;
    self.repaymentPreMonthTextView = nil;
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

#pragma mark - Event

- (void)recalculateButtonOnClick:(id)sender
{
    [self dismissModalViewControllerAnimated:YES];
}

@end
